package com.hdoit.ares.web.brokerage.modelconfig;
import com.hdoit.ares.web.insu.providers.FanhuaCarPropertyProvider;
import com.tennetcn.common.enums.regular.MathRegularExpressions;
import com.tennetcn.component.attribute.DateTimeAttribute;
import com.tennetcn.component.attribute.DisplayNameAttribute;
import com.tennetcn.component.attribute.DropDownListAttribute;
import com.tennetcn.component.attribute.RegularExpressionAttribute;
import com.tennetcn.component.attribute.base.ModelMetadataAttributeConfiguration;

/**
 * @author      yujinhui
 * @email       
 * @createtime  2017年12月14日 13:48:40
 * @comment
 */
public class CarBrokerageRecordConfig extends ModelMetadataAttributeConfiguration{
    public CarBrokerageRecordConfig(){
    	
    	this.setProperty("customerName")
         	.hasAttribute(new DisplayNameAttribute("用户名"));
    	
    	this.setProperty("userIdentity")
            .hasAttribute(new DisplayNameAttribute("用户标识"));
    	
    	this.setProperty("modifyUserName")
            .hasAttribute(new DisplayNameAttribute("修改人"));
    	
    	this.setProperty("modifyDate")
            .hasAttribute(new DisplayNameAttribute("修改日期"));
       
    	this.setProperty("brokerage")
            .hasAttribute(new DisplayNameAttribute("总保费"));

        this.setProperty("broPercent")
            .hasAttribute(new DisplayNameAttribute("分润百分比"));

        this.setProperty("taxPercent")
            .hasAttribute(new DisplayNameAttribute("税后佣金"));

        this.setProperty("recordDate")
            .hasAttribute(new DisplayNameAttribute("记录日期"))
            .hasAttribute(new DateTimeAttribute());

        this.setProperty("heisitateDate")
            .hasAttribute(new DisplayNameAttribute("犹豫期"))
            .hasAttribute(new RegularExpressionAttribute(MathRegularExpressions.naturalNumber));

        this.setProperty("customerId")
            .hasAttribute(new DisplayNameAttribute("佣金持有者"));

        this.setProperty("currency")
            .hasAttribute(new DisplayNameAttribute("佣金币种"));

        this.setProperty("companyName")
            .hasAttribute(new DisplayNameAttribute("保险公司简称"));

        this.setProperty("carNo")
            .hasAttribute(new DisplayNameAttribute("车牌号"));

        this.setProperty("carName")
            .hasAttribute(new DisplayNameAttribute("车型名称"));

        this.setProperty("efcInsureInfo")
            .hasAttribute(new DisplayNameAttribute("交强险"));

        this.setProperty("bizInsureInfo")
            .hasAttribute(new DisplayNameAttribute("商业险"));

        this.setProperty("carOwnerName")
            .hasAttribute(new DisplayNameAttribute("车主姓名"));

        this.setProperty("applicantName")
            .hasAttribute(new DisplayNameAttribute("投保人姓名"));

        this.setProperty("applicantPhone")
            .hasAttribute(new DisplayNameAttribute("投保人电话"));

        this.setProperty("confirmState")
            .hasAttribute(new DisplayNameAttribute("确认状态"));
        
        this.setProperty("taskId")
        	.hasAttribute(new DisplayNameAttribute("任务号"));

        this.setProperty("carProperty")
        	.hasAttribute(new DisplayNameAttribute("车辆性质"))
        	.hasAttribute(new DropDownListAttribute(new FanhuaCarPropertyProvider()));

        this.setProperty("efcInsureInfoPolicyNo")
        	.hasAttribute(new DisplayNameAttribute("交强险保单号"));

        this.setProperty("bizInsureInfoPolicyNo")
        	.hasAttribute(new DisplayNameAttribute("商业险保单号"));
        
        this.setProperty("customerName")
    		.hasAttribute(new DisplayNameAttribute("用户名"));

        this.setProperty("userIdentity")
    		.hasAttribute(new DisplayNameAttribute("会员号"));

        this.setProperty("modifyUserName")
    		.hasAttribute(new DisplayNameAttribute("修改人姓名"));

        this.setProperty("modifyDate")
    		.hasAttribute(new DisplayNameAttribute("修改日期"));
        
    }
}
